<template>
  <div>
    <h1>打印插件</h1>
    <pre>
   vue-print-nb
    1:下载  yarn add  vue-print-nb
    2:导入 在main.js导入
       import Print from 'vue-print-nb'
       Vue.use(Print)
    3:将需要打印的区域加上id
       div   id='xxx'
    4:将要打印的按钮 v-print="{id:'xxx'}"
</pre>
    <div>
      <h1>测试标题123</h1>
      <div id="xxx">
        <el-form label-width="80px">
          <el-form-item label="用户名">
            <el-input />
          </el-form-item>
        </el-form>
      </div>
      <el-button
        v-print="{ id: 'xxx', popTitle: '测试打印123' }"
      >打印</el-button>
    </div>
  </div>
</template>
<script>
export default {}
</script>
<style></style>
